{extends file="main.tpl"}
{block name=head}
<script type="text/javascript">
  $(document).ready(function() {
    $('#process').focus();
});
function myFunction()
{
	if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
<form name="process" action="{$smarty.server.PHP_SELF}" method="post">
<table align="center" border="0" cellpadding="2" cellspacing="2" >
<tr>
  <td align="center" class="table1" colspan="2">Process Entry</td>
</tr>
<tr>
  <td class="table2 align="right"><b>ProcessName</b></td>
  <td class="table2">
  	<input type="hidden" name="updateProcessId" value="{$editProcessId}">
  <input type="text" name="processName" autofocus=autofocus required="required" value="{$editProcessName}"></td>
</tr>
<tr>
  <td align="center" colspan="2" class="table1"><input type="submit" name="insertBtn" value="Submit" class="button" /></td>
</tr>
</table>
</form>
<br><br>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
	<td  class="table1" align='center' ><B>&nbsp;</td>
	<td  class="table1" align='center' ><B>&nbsp;</td>
	<td  class="table1" align='center' ><B>ProcessName</b></td>
</tr>
{section name="sec" loop=$processDataArray}
<tr>
	 <td class="table2" align="center"><a href="process.php?processId={$processDataArray[sec].processId}"  class="link"><img src="./images/edit.gif"></a></td>
  <td class="table2" align="center"><a href="Processdelete.php?processId={$processDataArray[sec].processId}" onclick="return myFunction();" class="link"><img src="./images/deleteIco.png"></a></td>
  <td class="table2" align="left">{$processDataArray[sec].processName}</td>
</tr>
{sectionelse}
<tr>
	<td>
   {$msg}
  </td>
</tr> 
{/section}
</table>
{/block}